package cn.tedu.feign.feign;

import com.ljz.pojo.Order;
import com.ljz.web.utils.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by LJZ.
 * User: UID
 * Date:2020/6/19
 * Time: 16:31
 * To change this template use File | Settings | File Templates.
 */
@FeignClient("order-service")
public interface OrderFeign {
    @GetMapping("/{orderId}")
    JsonResult<Order> getOrder(@PathVariable String orderId);

    @GetMapping("/")
    JsonResult addOrder();
}
